/**
 *  Copyright (c)  2011-2020 Panguso, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Panguso, 
 *  Inc. ("Confidential Information"). You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into with Panguso.
 */
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package storage.dbobject;

import java.util.ArrayList;
import java.util.UUID;

/**
 * 
 * @author Meng
 */
public class DbProduct {
	/**
	 * 
	 * string
	 */
	public static final String CL_KEY = "KEY";
	private String rowKey;
	/**
	 * 
	 * string
	 */
	public static final String CL_NAME = "name";
	private String name;
	/**
	 * 
	 * string
	 */
	public static final String CL_CHINESE = "chinese";
	private String chinese;
	/**
	 * 
	 * string
	 */
	public static final String CL_UPDATETIME = "updateTime";
	private String updateTime;
	/**
	 * 
	 * string
	 */
	public static final String CL_LOGBODY = "logBody";
	private ArrayList<String> logBodyList;

	/**
	 * 
	 * @param rowKey parameter
	 * @param name parameter
	 * @param chinese parameter
	 * @param updateTime parameter
	 * @param logBodyList parameter
	 * @return
	 */
	public DbProduct(String rowKey, String name, String chinese,
			String updateTime, ArrayList<String> logBodyList) {
		this.rowKey = rowKey;
		this.name = name;
		this.chinese = chinese;
		this.updateTime = updateTime;
		this.logBodyList = logBodyList;
	}

	/**
	 * 
	 * @param name parameter
	 * @param chinese parameter
	 * @param updateTime parameter
	 * @param logBodyList parameter
	 * @return
	 */
	public DbProduct(String name, String chinese, String updateTime,
			ArrayList<String> logBodyList) {
		this.rowKey = UUID.randomUUID().toString();
		this.name = name;
		this.chinese = chinese;
		this.updateTime = updateTime;
		this.logBodyList = logBodyList;
	}

	/**
	 * @return the rowKey
	 */
	public String getRowKey() {
		return rowKey;
	}

	/**
	 * 
	 * @param rowKey parameter
	 * @return
	 */
	public void setRowKey(String rowKey) {
		this.rowKey = rowKey;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * 
	 * @param name parameter
	 * @return
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the chinses
	 */
	public String getChinese() {
		return chinese;
	}

	/**
	 * 
	 * @param chinese parameter
	 * @return
	 */
	public void setChinese(String chinese) {
		this.chinese = chinese;
	}

	/**
	 * @return the updateTime
	 */
	public String getUpdateTime() {
		return updateTime;
	}

	/**
	 * 
	 * @param updateTime parameter
	 * @return
	 */
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * @return the logBodyList
	 */
	public ArrayList<String> getLogBodyList() {
		return logBodyList;
	}

	/**
	 * 
	 * @param logBodyList parameter
	 * @return
	 */
	public void setLogBodyList(ArrayList<String> logBodyList) {
		this.logBodyList = logBodyList;
	}

}
